

import {
  DataAnalysis
} from '@element-plus/icons-vue'
import HomeView from '../views/Home/index.vue'
// import Layout from '@/layout/index.vue'
import type { RouteRecordRaw } from 'vue-router'


const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: "/dashboard",
    meta: {
      hidden: true
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/Login/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/install',
    name: 'install',
    component: () => import('../views/Install/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/dashboard',
    name: '仪表盘',
    component: HomeView,
    meta: {
      Icon: DataAnalysis,
    }
  },
  {
    path: '/admin/auth/:id',
    name: '菜单授权',
    component: () => import('../views/Admin/Auth/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/admin/menu-action/:id',
    name: '功能授权',
    component: () => import('../views/Admin/MenuAction/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/authorized/authorized-action/:businessKey',
    name: '接口授权',
    component: () => import('../views/Authorized/AuthAction/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/404',
    name: '404',
    component: () => import('/src/views/404/index.vue'),
    meta: { hidden: true }
  },
]

export default routes
